package com.test.ssm.service.impl;

import com.test.ssm.dao.FlightDAO;
import com.test.ssm.pojo.Flight;
import com.test.ssm.service.FlightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author 徒有琴
 */
@Service
public class FlightServiceImpl implements FlightService {
    @Autowired
    private FlightDAO flightDAO;

    @Override
    public List<Flight> getFlights(Date time, String off, String arrive) {
        return flightDAO.getFlights(time, off, arrive);
    }
}
